package com.das.mechanic_base.widget;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.das.mechanic_base.R;
import com.das.mechanic_base.adapter.main.X3MaintenancePlanAdapter;
import com.das.mechanic_base.base.X3BaseBottomSheetDialog;

import java.util.ArrayList;
import java.util.List;

public class X3MaintenancePlanDialog extends X3BaseBottomSheetDialog {

    private RecyclerView recyclerview;

    public X3MaintenancePlanDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected boolean getDialogCancel() {
        return false;
    }

    @Override
    protected void initView() {
        recyclerview = findViewById(R.id.recyclerview);
        recyclerview.setLayoutManager(new LinearLayoutManager(mContext));
        X3MaintenancePlanAdapter maintenancePlanAdapter = new X3MaintenancePlanAdapter(mContext);
        recyclerview.setAdapter(maintenancePlanAdapter);
        List<String> list = new ArrayList<>();
        list.add("1");
        list.add("2");
        maintenancePlanAdapter.setDataList(list);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.x3_dialog_maintenanceplan;
    }
}
